import request from '@/utils/request'

export function listCdkey(query) {
  return request({
    url: '/cdkey/list',
    method: 'get',
    params: query
  })
}

export function deleteCdkey(data) {
  return request({
    url: '/cdkey/delete',
    method: 'post',
    data
  })
}

export function createCdkey(data) {
  return request({
    url: '/cdkey/create',
    method: 'post',
    data
  })
}

export function readCdkey(query) {
  return request({
    url: '/cdkey/read',
    method: 'get',
    params: query
  })
}

export function editCdkey(data) {
  return request({
    url: '/cdkey/update',
    method: 'post',
    data
  })
}
